package com.example.demo.response;

import com.example.demo.dto.UserDTO;

public class LoginResponse {
    private UserDTO userInfo;     // 用户信息
    private String token;         // 认证token
    private String expireTime;    // token过期时间
    private String redirectPath;  // 登录后重定向路径
    private boolean hasPermission; // 是否有登录权限

    // Getters and Setters
    public UserDTO getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserDTO userInfo) {
        this.userInfo = userInfo;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getRedirectPath() {
        return redirectPath;
    }

    public void setRedirectPath(String redirectPath) {
        this.redirectPath = redirectPath;
    }

    public boolean isHasPermission() {
        return hasPermission;
    }

    public void setHasPermission(boolean hasPermission) {
        this.hasPermission = hasPermission;
    }
}